package com.google.code.virtualhockey.vhx.shared.error;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * <p>
 * Basic exception that is thrown to indicate any kind of server side problem.
 * It can be propagated to client side code if needed.
 * </p>
 *
 * <p>
 * Use this exception exclusively for GWT/RPC communication when you would like
 * to propagate a server side problem to the client. Otherwise, please use the
 * various exceptions from GDT Core in the package 'cern.gdt.core.error'.
 * </p>
 */
public class WebServerException extends Exception implements IsSerializable
{
  /** Argumentless constructor for GWT/RPC. */
  protected WebServerException()
  {
  }

  /**
   * Creates a new WebServerException.
   *
   * @param strMessage the exception message
   * @param cause the exception's root cause
   */
  public WebServerException( String strMessage, Throwable cause )
  {
    super( strMessage, cause );
  }

  /**
   * Creates a new WebServerException.
   *
   * @param strMessage the exception message
   */
  public WebServerException( String strMessage )
  {
    super( strMessage );
  }

  /**
   * Creates a new WebServerException.
   *
   * @param cause the exception's root cause
   */
  public WebServerException( Throwable cause )
  {
    super( cause );
  }
}
